Pod::Spec.new do |spec|
  spec.name             = 'ACComponentTabbarContainer'
  spec.version          = '2.0.0'
  spec.license          = { :type => 'MIT' }
  spec.homepage         = 'https://git.linewellcloud.com'
  spec.authors          = { 'xhuatang' => 'xhuatang@linewell.com' }
  spec.summary          = '城市通2.0 - 公共库'
  spec.source           = { :http => 'https://gitee.com/lwhlw/ios_gsjc_framework_zip/raw/master/release/JCSDK/ACComponentTabbarContainer.zip'}
  spec.source_files     = 'ACComponentTabbarContainer/**/*.{m,h,swift}'
  spec.requires_arc = true
  spec.ios.deployment_target = '9.0'
  spec.swift_version    = '5.0'
  spec.vendored_frameworks = '*.framework'
  spec.dependency       'ACEngineLib'
  #spec.dependency       'ACComponentItemLib'

  spec.subspec 'GTSDK' do |submap|
    submap.ios.vendored_frameworks = 'Libs/GTSDK.framework'
    submap.ios.libraries           = 'c++','z','sqlite3','resolv'
    submap.frameworks = 'Security','MobileCoreServices','SystemConfiguration','CoreTelephony','AVFoundation','CoreLocation','AdSupport'
    submap.weak_framework = 'UserNotifications'# Link Binary With Libraries 把status由Required 修改成Optional
  end
  
  #  spec.subspec 'GTSDK' do |sss|
  #     sss.ios.vendored_frameworks = 'Libs/GTSDK.framework'
  #     sss.ios.libraries           = 'c++','z','sqlite3','resolv'
  #  end
  #  spec.prepare_command = <<-EOF
  ## 创建Module
  #rm -rf Libs/GTSDK.framework/Modules
  #mkdir Libs/GTSDK.framework/Modules
  #touch Libs/GTSDK.framework/Modules/module.modulemap
  #cat <<-EOF > Libs/GTSDK.framework/Modules/module.modulemap
  #framework module GTSDK {
  #  umbrella header "GeTuiSdk.h"
  #  export *
  #  module * { export * }
  #  link "c++"
  #  link "z"
  #  link "sqlite3"
  #  link "resolv"
  #}
  #\EOF
  #
  #EOF

end
